package com.entity;

import java.util.List;

/**
 * @author WZ
 * @version 1.0
 * @date 2021/8/20 17:15
 */
public class SelectResBody {


    private String code;
    private String msg;
    private int pageSize;
    private  int pageNum;
    private  int total;
    private List<?> data;


    public SelectResBody(String code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public List<?> getData() {
        return data;
    }

    public void setData(List<?> data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public SelectResBody(){

    }

    public SelectResBody(String code, String msg, List<?> data) {

        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public SelectResBody(String code, String msg,int pageSize,int pageNum, List<?> data,int total) {
        this.total=total;
        this.code = code;
        this.msg = msg;
        this.pageSize=pageSize;
        this.pageNum=pageNum;
        this.data = data;
    }

//    @Override
//    public String toString() {
//        return "ResonSeMessage{" +
//                "kiaraList=" + kiaraList +
//                ", code='" + code + '\'' +
//                ", msg='" + msg + '\'' +
//                '}';
//    }
}
